package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface ReportService {

     TurnoverReportVO turnoverReport(LocalDate begin, LocalDate end);
     /**
      * 根据时间区间统计用户数量
      * @param begin
      * @param end
      * @return
      */
     UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

     /**
      * 根据时间区间统计订单数量
      * @param begin
      * @param end
      * @return
      */
     OrderReportVO getOrderStatistics(LocalDate begin, LocalDate end);
     /**
      * 查询指定时间区间内的销量排名top10
      * @param begin
      * @param end
      * @return
      */
     SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);

    void exportBusinessData(HttpServletResponse httpServletResponse);
}
